#pragma warning(disable:4996)
#pragma warning(disable:6031)

#include "Heap.h"

void test1()
{
	HP hp;
	HPInit(&hp);
	int arr[10] = { 5,4,2,1,3,9,6,8,7,0 };
	for (int i = 0; i < 10; i++)
	{
		HPPush(&hp, arr[i]);
	}
	while (!HPEmpty(&hp))
	{
		printf("%d ", hp.arr[0]);
		HPPop(&hp);
	}


	HPDestroy(&hp);
}

int main()
{
	test1();
	return 0;
}